package com.qf.service.impl;

import com.qf.service.GradeService;
import org.springframework.stereotype.Service;

@Service
public class GradeServiceImpl implements GradeService {
    @Override
    public void add() {
        System.out.println("GradeServiceImpl的新增方法");
    }

    @Override
    public Integer remove() {
        System.out.println("GradeServiceImpl的删除方法");
        return 1;
    }

    @Override
    public Integer modify() {
        System.out.println("GradeServiceImpl的修改方法");
        int i = 10/0;
        return 100;
    }

    @Override
    public void show() {
        System.out.println("GradeServiceImpl的查询单个方法");
        throw new RuntimeException("有异常！，看异常增强是否能接收");
    }

    @Override
    public void showAll() {
        System.out.println("GradeServiceImpl的查询所有方法");

    }
}
